USE [vudu]
GO
/****** Object:  StoredProcedure [dbo].[UltimoHorario]    Script Date: 05/27/2011 03:23:00 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[UltimoHorario] 
	@estudiante int

AS
BEGIN

	SET NOCOUNT ON;

	SELECT MAX(id_HorarioPreMatricula) as Maximo FROM [vudu].[dbo].[HorarioPreMatricula] WHERE fk_Estudiante = @estudiante
END
